home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / fileutils_3_3.lha / fileutils-3.3 / Makefile.in < prev    next >
Makefile  |  1992-08-01  |  6KB  |  174 lines

  1. # Master Makefile for the GNU file utilities.
  2. # Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@
  24.  
  25. # If you use gcc, you should either run the fixincludes script that
  26. # comes with it or else use gcc with the -traditional option.  Otherwise
  27. # ioctl calls will be compiled incorrectly on some systems.
  28. CC = @CC@
  29. AR = ar
  30. # Set RANLIB = echo if your system doesn't have or need ranlib.
  31. RANLIB = @RANLIB@
  32.  
  33. # Things you might add to DEFS:
  34. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  35. # -DHAVE_UNISTD_H    If you have unistd.h.
  36. # -DHAVE_LIMITS_H    If you have limits.h.
  37. # -DUSG            If you have System V/ANSI C string and
  38. #            memory functions and headers, ndir.h,
  39. #            sys/sysmacros.h, no sys/times.h, fcntl.h,
  40. #            getcwd.
  41. # -DRETSIGTYPE=int    If your signal handlers return int, not void.
  42. # -DDIRENT        If you have dirent.h.
  43. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  44. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  45. # -DMAJOR_IN_MKDEV    If major, minor, makedev defined in sys/mkdev.h.
  46. # -DMAJOR_IN_SYSMACROS    If major, minor, makedev defined in sys/sysmacros.h.
  47. # -DINT_16_BITS        If sizeof long > sizeof int.
  48. # -DHAVE_STRERROR    If you have strerror function.
  49. # -DHAVE_VPRINTF    If you have vprintf function.
  50. # -DHAVE_DOPRNT        If you have _doprnt function (but lack vprintf).
  51. # -DHAVE_MKFIFO        If you have mkfifo system call.
  52. # -DHAVE_FTRUNCATE    If you have ftruncate system call.
  53. # -DHAVE_FCHMOD        If you have fchmod system call.
  54. # -DMVDIR=\"$(libdir)/mvdir\"
  55. #            If you lack rename system call.
  56. # -DHAVE_ST_BLOCKS    If your `struct stat' has st_blocks and st_blksize.
  57. # -DHAVE_UTIME_NULL    If your utime system call uses the
  58. #            current time when passed a null time pointer.
  59. # -DNEED_TZSET        If you lack ftime system call and
  60. #            need to call tzset to set the timezone.
  61. # -DAFS            If you use the Andrew File System and want
  62. #            install to ignore AFS errors from trying to
  63. #            change files' groups.
  64. # Define zero or one of the following; you need one to compile df.
  65. # The numbers after STATFS are the number of args it's passed.
  66. # See lib/fsusage.c for more details.
  67. # STAT_STATFS2_BSIZE    4.3BSD, SunOS 4, HP-UX, AIX.
  68. # STAT_STATFS2_FSIZE    4.4BSD.
  69. # STAT_STATFS2_FS_DATA    Ultrix.
  70. # STAT_READ        SVR2.
  71. # STAT_STATFS4        SVR3, Dynix, Irix.
  72. # STAT_STATVFS        SVR4.
  73. # Define zero or one of the following; you need one to compile df.
  74. # The numbers after GETMNTENT are the number of args it's passed.
  75. # See lib/mountlist.c for more details.
  76. # MOUNTED_GETMNTENT1    4.3BSD, SunOS 4, HP-UX, Dynix, Irix.
  77. # MOUNTED_GETMNTINFO    4.4BSD.
  78. # MOUNTED_GETMNT    Ultrix.
  79. # MOUNTED_FREAD        SVR2.
  80. # MOUNTED_FREAD_FSTYP    SVR3.
  81. # MOUNTED_GETMNTENT2    SVR4.
  82. # MOUNTED_VMOUNT    AIX.
  83.  
  84. DEFS = @DEFS@
  85. LIBS = @LIBS@
  86. LIBPROGS = @LIBPROGS@
  87.  
  88. CFLAGS = -g
  89. LDFLAGS = -g
  90.  
  91. prefix = /usr/local
  92. exec_prefix = $(prefix)
  93.  
  94. # Prefix for each installed program, normally empty or `g'.
  95. binprefix = 
  96. # Prefix for each installed man page, normally empty or `g'.
  97. manprefix = 
  98.  
  99. # Where to install the executables.
  100. bindir = $(exec_prefix)/bin
  101.  
  102. # Where to put mvdir, if your system lacks the rename system call.
  103. libdir = $(exec_prefix)/lib
  104.  
  105. # Where to put the manual pages.
  106. mandir = $(prefix)/man/man1
  107. # Extension (not including `.') for the installed manual page filenames.
  108. manext = 1
  109.  
  110. #### End of system configuration section. ####
  111.  
  112. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' mandir='$(mandir)' \
  113. manext='$(manext)' binprefix='$(binprefix)' manprefix='$(manprefix)' \
  114. LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' AR='$(AR)' RANLIB='$(RANLIB)' \
  115. DEFS='$(DEFS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' \
  116. LIBS='$(LIBS)' CC='$(CC)'
  117.  
  118. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  119. NEWS configure configure.in 
  120.  
  121. # Redundant stuff for making only selected programs.
  122. PROGS = chgrp chown chmod cp dd du ginstall ln dir vdir ls mkdir \
  123. mkfifo mknod mv rm rmdir touch @PROGS@
  124.  
  125. # Subdirectories to run make in for the primary targets.
  126. SUBDIRS = lib src man
  127.  
  128. all:
  129.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  130. .PHONY: all
  131.  
  132. $(PROGS):
  133.     cd lib; $(MAKE) $(MDEFINES) all
  134.     cd src; $(MAKE) $(MDEFINES) $@
  135.  
  136. install:
  137.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  138. .PHONY: install
  139.  
  140. TAGS:
  141.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  142. .PHONY: TAGS
  143.  
  144. clean:
  145.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  146. .PHONY: clean
  147.  
  148. mostlyclean:
  149.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  150. .PHONY: mostlyclean
  151.  
  152. distclean:
  153.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  154.     rm -f Makefile config.status
  155. .PHONY: distclean
  156.  
  157. realclean:
  158.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  159.     rm -f Makefile config.status
  160. .PHONY: realclean
  161.  
  162. dist:
  163.     echo fileutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
  164.     rm -rf `cat .fname`
  165.     mkdir `cat .fname`
  166.     ln $(DISTFILES) `cat .fname`
  167.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  168.     tar chZf `cat .fname`.tar.Z `cat .fname`
  169.     rm -rf `cat .fname` .fname
  170. .PHONY: dist
  171.  
  172. # Prevent GNU make v3 from overflowing arg limit on SysV.
  173. .NOEXPORT:
  174.